package com.mall.order.dto.entity;

    import com.baomidou.mybatisplus.extension.activerecord.Model;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableField;
    import java.io.Serializable;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

/**
* <p>
    * 库存表
    * </p>
*
* @author xrj
* @since 2022-05-02
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class TbStock extends Model<TbStock> {

    private static final long serialVersionUID = 1L;

            /**
            * 商品id
            */
            @TableId("item_id")
    private Long itemId;

            /**
            * 库存数量
            */
        @TableField("stock_count")
    private Long stockCount;

            /**
            * 冻结库存数量
            */
        @TableField("lock_count")
    private Integer lockCount;

            /**
            * 限购数量
            */
        @TableField("restrict_count")
    private Integer restrictCount;

            /**
            * 售卖id
            */
        @TableField("sell_id")
    private Integer sellId;


    @Override
    protected Serializable pkVal() {
        return this.itemId;
    }

}
